#ifndef OUTPUTMEMORYSTREAM_H
#define OUTPUTMEMORYSTREAM_H

#include "outputstream.h"
#define BUFFER 16384 

class outputmemorystream:public outputstream
{
	int fd;
	int wcount;
	int* waddress;
	int woffset;
	public:
	outputmemorystream()
	{
		fd = -1;
		wcount = 0;
		woffset = 0;
		waddress = 0;
	}

	virtual void create(const char* fileName);
	virtual void write_s(int data);
	virtual void close_s();

	virtual ~outputmemorystream()
	{
		waddress = 0;
	}
};

#endif
